home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_26_1988_Transactor_Publishing.d64
/
video reset
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
832b
|
30 lines
100 rem video reset - relocatable
110 ml=50000: rem start address
120 :
130 x=ml: x1=x+21: x2=x+95
140 h1=int(x1/256): l1=x1-256*h1
150 h2=int(x2/256): l2=x2-256*h2
160 h3=int(x/256): l3=x-256*h3
170 gosub 230
180 print"tap restore to reset video"
190 poke ml+1,l1 : poke ml+3,h1
200 poke ml+11,l2: poke ml+13,h2
210 poke ml+99,l3: poke ml+100,h3
220 sys ml: end
230 read a: if a=-1 then return
240 poke x,a: x=x+1: goto 230
250 data 169,128,162,192,141,24,3,142
260 data 25,3,169,202,162,192,141,0
270 data 3,142,1,3,96,72,152,72
280 data 169,6,141,32,208,141,33,208
290 data 169,14,141,134,2,169,23,141
300 data 24,208,169,200,141,22,208,169
310 data 27,141,17,208,169,199,141,0
320 data 221,160,0,173,134,2,153,0
330 data 216,153,0,217,153,0,218,153
340 data 0,219,200,208,241,140,21,208
350 data 152,153,0,212,200,192,25,208
360 data 248,104,168,104,76,71,254,72
370 data 138,72,32,0,192,104,170,104
380 data 76,139,227,-1